from django.conf import settings

 # __init__.py
TO_DICT_ATTR    = getattr(settings, 'MEGAFEED_TO_DICT_ATTR',    'to_dict'  )
FILTER_ATTR     = getattr(settings, 'MEGAFEED_FILTER_ATTR',     'filter'   )
MEGA_FEED_ATTR  = getattr(settings, 'MEGAFEED_MEGA_FEED_ATTR',  'mega_feed')
PAGE_PREFIX     = getattr(settings, 'MEGAFEED_PAGE_PREFIX',     'page'     )
PER_PAGE_PREFIX = getattr(settings, 'MEGAFEED_PER_PAGE_PREFIX', 'per_page' )
EXPAND_RELATED  = getattr(settings, 'MEGAFEED_EXPAND_RELATED',  'expand'   )
ORDERING        = getattr(settings, 'MEGAFEED_ORDERING',        'order'    )
TO_DICT_FN      = getattr(settings, 'MEGAFEED_TO_DICT_FN',       {}        )

 # views.py
#DEFAULT_FEED_PREFIX = getattr(settings, 'MEGAFEED_DEFAULT_FEED_PREFIX', 'feed')
MODEL_SPECIFIER = getattr(settings, 'MEGAFEED_MODEL_SPECIFIER', 'model'    )
PAGINATE_ARG    = getattr(settings, 'MEGAFEED_PAGINATE_ARG   ', 'paginate' )

 # middleware.py
JSONP_PREFIX    = getattr(settings, 'MEGAFEED_JSONP_PREFIX',    'jsonp'    )
SHOW_QUERIES    = getattr(settings, 'MEGAFEED_SHOW_QUERIES',    False      )

 # Serialized Errors
BAD_FEED = {'error': '1000', 'message': 'Specified feed not found'}
